const TOKEN_STORAGE_KEY = '_tt'

export const setToken = token => {
  localStorage.setItem(TOKEN_STORAGE_KEY, token)
  return token
}

export const getToken = () => {
  return localStorage.getItem(TOKEN_STORAGE_KEY) || ''
}

export const removeToken = () => {
  localStorage.removeItem(TOKEN_STORAGE_KEY)
}
